<?php
namespace Tbf\Bundle\TestBundle\SetUp;
use Symfony\Component\Config\Loader\FileLoader;

class YamlLoader extends FileLoader{
    /**
     * Loads a resource.
     *
     * @param mixed $resource The resource
     * @param string $type     The resource type
     */
    public function load($resource, $type = null)
    {
        $path = $this->locator->locate($resource);

    }

    /**
     * Returns true if this class supports the given resource.
     *
     * @param mixed $resource A resource
     * @param string $type     The resource type
     *
     * @return Boolean true if this class supports the given resource, false otherwise
     */
    public function supports($resource, $type = null)
    {
        return is_string($resource) && 'php' === pathinfo($resource, PATHINFO_EXTENSION);
    }

}